package com.pigdogbay.androidutils.usercontrols;

import java.util.Locale;

import android.content.Context;

public class NumberEditorDialog extends DialogBase{

	public NumberEditorDialog(Context context, String hint, String title)
	{
		super (context,hint,title);
	}
	@Override
	protected String getValue(final INumberPickerValue numberPickerValue) {
		return String.format(Locale.US, "%.1f",numberPickerValue.getValue());
	}
	@Override
	protected void setValue(final INumberPickerValue numberPickerValue,String value) {
		numberPickerValue.setValue(Double.parseDouble(value));
	}

}
